var homeData = require("../../datas/homeData.js");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    homeData: homeData.data.data.sections,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx.request({
      url: 'https://m.mi.com/v1/home/page', //仅为示例，并非真实的接口地址
      method:'POST',
      data: {
        client_id: '180100031058',
        channel_id: '17484.0002',
        webp: '1',
        page_type: 'home'
      },
      header: {
        "Content-Type": "application/x-www-form-urlencoded"
      },
      success: function (res) {
        console.log(res.data)
      }
    })
  },

  
})